package cn.gok;

/**
 * @Author: chenfan
 * @Description:
 */
public class Demo01 {

//    public void test1(ClassA a){
//        a.method();
//    }
//
//    public void test1(ClassB b){
//        b.method();
//    }

    public static void main(String[] args) {
//        ClassA classA = new ClassA();
//        classA.method();
    }

}


interface Base{
   public void method();
}


class ClassA implements Base{
    @Override
    public void method(){
        System.out.println("ClassA.method....");
    }
}

class ClassB implements Base{
    @Override
    public void method(){
        System.out.println("ClassA.method....");
    }
}